<!DOCTYPE html>
<html>
<head>
    <title>管理员管理</title>
</head>
<body class="layui-layout-body">
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">用户管理
            <a href="javascript:openwinx('添加管理员','/admin/operator/form.htm','800','600');" class="add_btn">添加</a>
            </h4>
        		<form action="/admin/operator/list.htm" method="get" class="layui-form">
	            <div class="layui-row">
                    <div class="layui-input-inline">
                        <select name="searchType" lay-filter="aihao">
                            <option value="">全部</option>
                            <option value="userLoginId" <#if query.searchType=='userLoginId'>selected</#if>>账户</option>
                            <option value="name" <#if query.searchType=='name'>selected</#if>>姓名</option>
                            <option value="mobile" <#if query.searchType=='mobile'>selected</#if>>手机号</option>
                        </select>
                    </div>
	                <div class="layui-input-inline">
	                    <input type="text" name="searchKey" value="${query.searchKey}" lay-verify="title" autocomplete="off" placeholder="搜索内容" class="layui-input">
	                </div>
	                <div class="layui-inline width80">
	                    <div class="layui-input-inline ">
	                        <button class="layui-btn" lay-submit="" lay-filter="demo1" ><i class="layui-icon"></i>搜索</button>
	                    </div>
	                </div>
	            </div>
            </form>
            
            <table class="layui-table mytable" lay-even="" lay-skin="nob">
                
                <thead>
                <tr>
                    <th>编号</th>
                    <th>登陆账户</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>联系方式</th>
                    <th>开通时间</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                	    <#list pm.datas as item>
                    <tr>
                    		<td>${item.partyId}</td>
                        <td>${item.userLoginId}</td>
                        <td>${item.person.name}</td>
                        <td>
                        	<@linkage type="GENDER" key=item.person.gender>
                        		${linkage.name}
                        	</@linkage>
                        </td>
                        <td>${item.person.mobile}</td>
                        <td>${item.createdTime?string('yyyy-MM-dd HH:mm:ss')}</td>
                        <td>
                        	<@linkage type="PARTY_STATUS" key=item.partyStatus>
                        		${linkage.name}
                        	</@linkage>
                        </td>
                        <td>
                        		<#if item.partyId != 0>
                        		<a href="javascript:openwinx('修改用户信息','/admin/operator/edit.htm?partyId=${item.partyId}','800','600');">修改</a> | 
                        		<#if item.partyStatus =='NORMAL'>
                        		<a href="javascript:xconfirm('确定是否冻结','/admin/operator/changeStatus.htm',{partyId:${item.partyId},'status':'freeze'})">冻结</a>
                        		<#else>
                        		<a href="javascript:xconfirm('确定是否冻结','/admin/operator/changeStatus.htm',{partyId:${item.partyId},'status':'normal'})">解冻</a>
                        		</#if>
                        		</#if>
                        </td>
                    </tr>
                    </#list>
                    
                </tbody>
            </table>
            <@p.page pm=pm></@p.page>

        </div>
     </div>
</body>
</html>